package com.ethank.controller.ocr;

import com.ethank.common.core.domain.AjaxResult;
import com.ethank.service.PackageRoomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 包房业务账单
 * @author gouqizi
 * @desc
 * @date 2025/4/22 10:28
 */
@RequestMapping("/shop/package")
@RestController
public class PackageRoomBillController extends BaseController{
    @Autowired
    PackageRoomService packageroomService;

    @RequestMapping(value = "accountBill")
    public AjaxResult getAccountBalance(String shopId,String sign){
        if(!checkSign(shopId,sign))
            return AjaxResult.error("签名校验失败");
        return packageroomService.getAccountBalance(shopId);
    }

    @RequestMapping(value = "accountBillDetail")
    public AjaxResult getAccountBillDetail(String shopId,Integer type,String sign){
        if(!checkSign(shopId,sign))
            return AjaxResult.error("签名校验失败");

        return packageroomService.getAccountBillDetail(shopId,type);
    }


}
